Newbie question here...why does the following code only work with a 1D array but not a 2D array? Shouldn't it not make a difference whether b is pointing to the start of a 1D array or a 2D array, as long as it's a char* pointer (as it is)? I thought that the general notation [bound1][bound2]...
However, an error comes: Cannot convert 'char(*)[50]' to 'char**' for argument '1' to 'void prac(char**)'. How can I fix the code ? Please help me.
If you have only one char and not a string, you can use
2. easiest way to append char - using simple assignment.
Char unsigned char signed char длинна Кааак Здравствуйте. char l = {0,0}; l = 0xff; Почему, меня, компилятор не посылает куда... Ошибка: "char *concat(char *,.)": невозможно преобразовать аргумент 1 из "const char [4]" в "char *" делал задание, но на строке 36 строке пишет, что "...
Нужно проверить обычный CHAR (ну и индекс добавим, мало ли что...)
For insert a char at the end of a string also we can use additional operation.
but I read a non-sense char. Thanks in advance.
char* char_to_chars(char ch) { char ch2[10]; ch2[0] = ch; char *ch3 = &ch2[0]; return ch3; } и я вызываю выше функцию здесь, она дает то, что я хочу, но все еще есть некоторая проблема, и я не знаю, что с ней не так.